{include file="public/head" /}
<!--有理想的地方，地狱都是天堂-->
<!--Copyright @ df81.com 版权所有-->
<!--作者: 南国老符 邮箱：1062129401@qq.com-->
<link href="{:config('template.skin')}/bootstrap-datepicker/css/bootstrap-datepicker3.min.css" rel="stylesheet" type="text/css" />
        <!-- 左侧菜单 开始 -->
        <div class="sidebar">
            <nav>
                <ul class="nav nav-pills nav-sidebar flex-column nav-flat nav-legacy d-block d-md-none" data-widget="treeview" role="menu" data-accordion="false">
                    {include file="public/left_content" /}
                </ul>
                <ul class="nav nav-pills nav-sidebar flex-column nav-flat nav-legacy" data-widget="treeview" role="menu" data-accordion="false">
                    {include file="public/left_data" /}
                </ul>
                <ul class="nav nav-pills nav-sidebar flex-column nav-flat nav-legacy d-block d-md-none" data-widget="treeview" role="menu" data-accordion="false">
                    {include file="public/left_global" /}
                </ul>
                <ul class="nav nav-pills nav-sidebar flex-column nav-flat nav-legacy d-block d-md-none" data-widget="treeview" role="menu" data-accordion="false">
                    {include file="public/left_system" /}
                </ul>
            </nav>
        </div>
        <!-- 左侧菜单 结束 -->
    </aside>
    <!-- 左侧 结束 -->
    <!-- 右侧 开始 -->
    <div class="content-wrapper">
        <!-- 内容导航 开始 -->
        <div class="content-header py-2 bg-white mb-3">
            <div class="container-fluid">
                <div class="row">
                    <div class="col-sm-12">
                        <ol class="breadcrumb">
                            <li>{:lang('v_data_manage')}<i class="fas fa-angle-right mx-2"></i></li>
                            <li>{:lang('v_data_manage')}<i class="fas fa-angle-right mx-2"></i></li>
                            <li>{:lang('v_log')} {:lang('v_manage')}</li>
                        </ol>
                    </div>
                </div>
            </div>
        </div>
        <!-- 内容导航 结束 -->
        <!-- 内容主体 开始 -->
        <section class="content">
            <div class="container-fluid">
                <div class="row">
                    <div class="col-md-12">
                        <div class="card">
                            <div class="card-body">
                                <div class="w-100 mb-3">
                                    <div class="row">
                                        <div class="col-md-8">
                                            <form name="form_diy" id="form_diy" action="" method="post">
                                                <input type="hidden" name="lang" value="{$lang}">
                                                <div class="float-left mr-2">
                                                    <div class="input-group input-daterange form_date" data-date="2019-04-10" data-date-format="yyyy-mm-dd">
                                                        <input type="text" class="form-control" name="fromdate" value="{php}echo date('Y-m-d', strtotime('-1 year'));{/php}">
                                                        <span class="input-group-text border-left-0 border-right-0 py-0 rounded-0"> to </span>
                                                        <input type="text" class="form-control" name="todate" value="{php}echo date('Y-m-d', strtotime('-1 month'));{/php}">
                                                    </div>
                                                </div>
                                                <div class="float-left">
                                                    <button type="button" class="btn btn-danger ml-2" onClick="javascript:do_confirm('#form_diy','','{:url('/log/delete_diy',['lang'=>$lang])}','','');"><i class="fa fa-trash mr-1"></i>{:lang('v_delete_select')} {:lang('v_date')} {:lang('v_log')}</button>
                                                </div>
                                            </form>
                                        </div>
                                        <div class="col-md-4">
                                            <form name="form_keyword" action="" method="post">
                                                <input type="hidden" name="lang" value="{$lang}">
                                                <div class="input-group">
                                                    <input name="keyword" placeholder="{:lang('v_quickfind')}" type="text" class="form-control">
                                                    <span class="input-group-append">
                                                        <button type="submit" class="btn btn-success"><i class="fa fa-search mr-1"></i>{:lang('v_search')}</button>
                                                    </span>
                                                </div>
                                            </form>
                                        </div>
                                    </div>
                                </div>
                                <table class="table table-striped table-bordered table-hover">
                                    <form name="form_list" id="form_list" action="" method="post">
                                        <tr>
                                            <th width="100" class="text-center">ID</th>
                                            <th class="d-invisible">{:lang('v_type')}</th>
                                            <th>{:lang('v_account')}</th>
                                            <th>{:lang('v_content_a')}</th>
                                            <th>{:lang('v_status')}</th>
                                            <th class="d-invisible">{:lang('v_add')} {:lang('v_time')}</th>
                                            <th width="200" class="text-center">{:lang('v_do')}</th>
                                        </tr>
                                        {volist name="list" id="rs"}
                                            <input type="hidden" name="id[]" value="{$rs.id}" />
                                            <tr>
                                                <td class="text-center">
                                                    <label class="form-check form-check-inline">
                                                        <input type="checkbox" name="selectid[]" id="selectid" value="{$rs.id}" class="mr-1" /><span class="d-invisible">{$rs.id}</span>
                                                    </label>
                                                </td>
                                                <td class="d-invisible">{$rs.log_type}</td>
                                                <td>{$rs.account}</td>
                                                <td>
                                                    {if is_numeric($rs['content'])}
                                                        <a data-target="#modal" data-toggle="modal" href="{:url('/feedback/edit',['lang'=>$lang,'id'=>$rs['content']])}">{:lang('v_view')} {:lang('v_feedback')}</a>
                                                    {else /}
                                                        {$rs.content}
                                                    {/if}
                                                </td>
                                                <td>
                                                    {eq name="rs.signid" value="1"}
                                                        <span class="text-success">{:lang('v_success')}</span>
                                                    {else /}
                                                        <span class="text-danger">{:lang('v_fail')}</span>
                                                    {/eq}
                                                </td>
                                                <td class="d-invisible">{$rs.addtime|date='Y-m-d H:i'}</td>
                                                <td class="text-center">
                                                    <span onClick="javascript:do_confirm('','','{:url('/log/delete_one',['lang'=>$lang,'id'=>$rs['id']])}','','');" class="btn btn-sm btn-danger mb-2"><i class="fa fa-fw fa-trash mr-1"></i>{:lang('v_delete')}</span>
                                                </td>
                                            </tr>
                                        {/volist}
                                        <tr>
                                            <td colspan="7">
                                                <div class="row">
                                                    <div class="col-xl-6 mt-2"><div class="float-lg-left mr-4">{$list->render()|raw}</div><div class="float-lg-left">{:lang('v_total')} {$lastPage} {:lang('v_page')} {$total} {:lang('v_records')}</div></div>
                                                    <div class="col-xl-6 mt-2 mt-md-1">
                                                        <div class="float-left float-xl-right">
                                                            <!-- 全选 -->
                                                            <button type="button" class="btn btn-info mr-2 checkbox-toggle"><i class="far fa-fw fa-square mr-1"></i>{:lang('v_select_all')}</button>
                                                            <!-- 真实删除 -->
                                                            <button type="button" class="btn btn-danger" onClick="javascript:do_confirm('#form_list','','{:url('/log/delete_all',['lang'=>$lang])}','','');"><i class="fa fa-fw fa-trash mr-1"></i>{:lang('v_delete_select')}</button>
                                                        </div>
                                                    </div>
                                                </div>
                                            </td>
                                        </tr>
                                    </form>
                                </table>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </section>
        <!-- 内容主体 结束 -->
    </div>
    <!-- 右侧 结束 -->
{include file="public/foot" /}
{include file="public/js_date_picker" /}
</body>
</html>